FROM apache/skywalking-java-agent:9.2.0-java17
EXPOSE 8080
ENV TZ Asia/Shanghai
RUN mv /skywalking/agent/optional-plugins/apm-sentinel*.* /skywalking/agent/plugins/
RUN mv /skywalking/agent/optional-plugins/apm-nacos*.* /skywalking/agent/plugins/
RUN mv /skywalking/agent/optional-plugins/apm-spring-webflux* /skywalking/agent/plugins/
RUN mv /skywalking/agent/optional-plugins/apm-spring-cloud-gateway-4*.* /skywalking/agent/plugins/
COPY build/libs/*.jar /app.jar
ENTRYPOINT java ${JAVA_OPTS} -javaagent:/skywalking/agent/skywalking-agent.jar -jar /app.jar
